package com.bocai.grainshop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bocai.common.utils.PageUtils;
import com.bocai.grainshop.product.entity.CategoryEntity;
import com.bocai.grainshop.product.vo.Catalogs2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author SunJinBo
 * @email 2374461077@qq.com
 * @date 2022-03-01 17:02:35
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeBatchId(List<Long> asList);

    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> queryFristCategory();

    Map<String, List<Catalogs2Vo>> getCatalogJson();
}


